from selenium import webdriver
from selenium.webdriver.common.by import By
import time


driver = webdriver.Chrome()
driver.get('https://www.baidu.com')


kw = driver.find_element(By.ID,'kw')
print(kw.id)
print(kw.size)
print(kw.rect)
print(kw.tag_name)


print('*'*100)
news =driver.find_element(By.LINK_TEXT,'新闻')
print(news.text)







time.sleep(3)
driver.quit()